import Vue from 'vue'
// import 'vant/lib/index.css'
// import Vant from 'vant'
import App from './App.vue'
import {createRouter} from './router'
import {createStore} from "@/store";
import './styles/index.scss'
Vue.config.productionTip = false
// 导出一个工厂函数，用于创建新的
// 应用程序、router 和 store 实例
export function createApp() {
    //创建路由实例
    const router = createRouter()
    const store = createStore()
    const app = new Vue({
        //注入路由
        router,
        store,
        render: h => h(App)
    })
    return {app, router}
}
